package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author ciel
 * @since 2021-01-04
 */
@TableName("sys_income")
public class Income extends Model<Income> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private String name;
	private Integer sex;
	private Integer age;
	private String school;
	private String phone;
	private Integer type;
	private BigDecimal money;
	private Integer fromTo;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date registTime;
	private Integer level;
	private Integer classNumber;
	private Date createTime;
	private String remark;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}


	public Date getRegistTime() {
		return registTime;
	}

	public void setRegistTime(Date registTime) {
		this.registTime = registTime;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getClassNumber() {
		return classNumber;
	}

	public Integer getFromTo() {
		return fromTo;
	}

	public void setFromTo(Integer fromTo) {
		this.fromTo = fromTo;
	}

	public void setClassNumber(Integer classNumber) {
		this.classNumber = classNumber;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Income{" +
			"id=" + id +
			", name=" + name +
			", sex=" + sex +
			", age=" + age +
			", school=" + school +
			", phone=" + phone +
			", type=" + type +
			", money=" + money +
			", fromTo=" + fromTo +
			", registTime=" + registTime +
			", level=" + level +
			", classNumber=" + classNumber +
			", createTime=" + createTime +
			", remark=" + remark +
			"}";
	}
}
